<template>
<div>
    <van-row type="flex" align="center" style="margin-top:10px">
       <van-col span="2">
<van-icon name="arrow-left" size="40"   color="rgb(64, 150, 236)" @click="back" />
       </van-col>
 <van-col span="20"><span>设置密码</span></van-col>
    </van-row>
    <hr style="margin-top:20px,color:rgba(137, 162, 162, 0.1)">

 <van-form @submit="onSubmit">
    <div class="shuru">
   <van-field
    v-model="username"
    type="username"
    name="用户名"
    left-icon="user-o"
    placeholder="请输入你的名字"
    :rules="[{ required: true, message: '请填用户名' }]"
  />
  <hr>
   <van-field
    v-model="password"
    type="password"
    name="密码"
    left-icon="smile-o"
    placeholder="请输入6-16位英文符号"
    :rules="[{ required: true, message: '请填写密码' }]"
  />
  <hr>
      </div>


   <div style="margin:1.875rem;">
    <van-button  block type="info" native-type="submit">立即进入</van-button>
  </div>
 
</van-form>
</div>
 

</template>

<script>
export default {

  data() {
    return {
      username: '',
      password: '',
        radio: '',
    };
  },
  methods: {
    onSubmit(values) {
      console.log('submit', values);
    },
    back(){
        this.$router.go(-1)
    }
  },
};

</script>

<style lang="less">
.van-col--8{
    margin: 1.25rem;

}
.shuru{
    width:80%;
    margin-left:2.5rem ;
}
</style>